package com.kehutong.charge.entity;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

/**
 * @program: kht
 * @description: 仪表类型
 * @author: joneron
 * @create: 2021/7/21
 **/
@Table(value="t_charge_meter_type", comment="仪表类型配置表",multi = true, idType = IDType.TIMESTAMP, engine = "innodb")
public class MeterTypeConfig extends DataEntity {

    private static final long serialVersionUID = -8723129589564624953L;

    protected MeterTypeConfig(String id) {
        super(id);
    }

    @Column(comment="类型名")
    private String typeName;

    @Column(comment="单位")
    private String unit;

    @Column(comment="精度")
    private String precision;

    @Column(comment = "状态：0禁用，1启用")
    private boolean status;

    @Column(comment="排序")
    private String sort;

    @Column(comment="仪表分类数量")
    private int number;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "创建人")
    private String createName;

    @Column(comment = "是否初始化数据",defValue = "NOT NULL default '1' " )
    private boolean initData;


    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPrecision() {
        return precision;
    }

    public void setPrecision(String precision) {
        this.precision = precision;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public boolean isInitData() {
        return initData;
    }

    public void setInitData(boolean initData) {
        this.initData = initData;
    }
}
